<template>
	<view style="padding-top: 35upx;" class="">
		<view class="topBox" v-if="Number(member_receive_log.amount)">
			<view style="vertical-align: middle;height: 50upx;line-height: 50upx;" class="">				
				<text class="fs18 C333">{{activity_info.title}}</text>
			</view>
			<view style="margin-top: 30upx;" class="lh80 Cd6b552">
				<text style="font-size: 100upx;">{{member_receive_log.amount}}</text>
				<text class="fs18">{{member_receive_log.amount_type_desc}}</text>
			</view>
			<view class="Cd6b552 fs15">
				已存入零钱
			</view>
		</view>
		<view class="liswrap">
			<view style="height: 88upx;line-height: 88upx;padding: 0 25upx;" class="fs20 C999">
				已有{{activity_info.ged_count}}人领取该红包,剩余{{activity_info.count - activity_info.ged_count}}个红包
			</view>
			<view v-for="(item,index) in receive_list" :key="index"  class="commonLis">
				<view style="padding-left: 10upx;" class="">
					<image v-if="item.is_luck == 1" style="width: 41upx;height: 41upx;position: absolute;z-index: 99;left: 20upx;top: 2upx;" src="../static/images/redPackets_li2.png" mode=""></image>
					<image style="width: 80upx;height: 80upx;border-radius: 50%;" :src="item.member_avatar" mode=""></image>
				</view>
				<view style="margin-top: -8upx ;margin-left: 20upx;height: 80upx;display: flex;justify-content: space-between;flex-direction: column;">
					<view class="C333 fs18">
						{{item.member_name}}
					</view>
					<view style="width: 300upx;" class="C999 fs18">
						{{item.add_datetime}}
					</view>
				</view>
				<view style="text-align: right;margin-top: 10upx ;margin-left: 120upx;height: 80upx;display: flex;justify-content: center;flex-direction: column;">
					<view class="C333 fs21">
						￥{{item.amount}}
					</view>
					<view v-if="item.is_luck == 1" style="background-color: #ffc21d;height: 40upx;line-height: 30upx;padding:5upx 10upx;border-radius: 20upx;" class="Cfff fs15">
						手气最佳
					</view>
				</view>
			</view>
		</view>
	</view>	
</template>

<script>
	// #ifdef H5
		const share = require("@/store/share.js")
	// #endif
	export default {
		data(){
			return{
				lis:[1,2,3,4],
				curpage:1,
				hasmore:0,
				activity_id:0,
				activity_info:{},
				receive_list:[],
				member_receive_log:{}
			}
		},
		onLoad(options) {
			this.activity_id=options.activity_id
			this.getLis()			
		},
		onShow() {
			
		},
		onReachBottom() {
			// if(this.hasmore){
			// 	this.curpage++;
			// }else{
			// 	uni.showToast({
			// 		title:'已是最后一页！',
			// 		icon:'none'
			// 	})
			// }
		},
		methods:{			
			getLis(){
				let that = this;			
				this.$util.request({
					url: '/mobile/index.php?act=wxrp_activity&op=detail',
					method: 'get',
					data: {
						"activity_id":301
					},
				}).then((res)=> {
					console.log(res)
					this.member_receive_log=res.datas.member_receive_log
					this.activity_info=res.datas.activity_info
					this.receive_list=res.datas.receive_list
					// #ifdef H5
						let shareInfo={
							title: this.activity_info.wishing , // 分享标题
							desc: this.activity_info.share_desc, // 分享描述  
							link:  this.$share+"/#/operation/redPacket/redPacketsDetail?activity_id="+this.activity_id, // 分享链接  
							imgUrl: this.activity_info.share_img, // 分享图标       
						}
							share.share(shareInfo)
					// #endif
				})
				
			}
	
			
			
		}
	}
</script>

<style>
	view{		
		box-sizing: border-box;
	}
	.titleNview-placing {
		height: var(--status-bar-height);
		box-sizing: content-box;
	 }
	.lh20{
		line-height: 20upx;
		height: 20upx;
	}
	.lh25{
		line-height: 25upx;
	}
	.lh30{
		line-height: 30upx;
	}
	.lh35{
		line-height: 35upx;
	}
	.lh40{
		line-height: 40upx;
	}
	.lh45{
		line-height: 45upx;
	}
	.lh50{
		line-height: 50upx;
	}
	.lh80{
		line-height: 80upx;
	}
	.C000{
		color: #000000;
	}
	.Ce13d97{
		color: #ff4300;
	}
	.Cfe0000{
		color: #ff4300;
	}
	.Cc06{
		color: #ff4300;
	}
	.mt55mb30{
		margin-top: 55upx;
		margin-bottom: 30upx;
	}
	.Cfff{
		color: #FFFFFF;
	}
	
	.flex{		
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-content: space-between;
	}
	.paddingL20{
		padding-left: 20upx;
	}
	.C999{
		color:#999 ;
	}
	.Cff0101{
		color:#ff0101 ;
	}
	.Cc00251{
		color: #c00251;
	}
	.strick{
		text-decoration: line-through;
	}
	.Cfe0000{
		color: #ff4300;
	}
	.line1{
		width: 430upx;
	}
	.hide{
		display: none;
	}
	.marginB20{
		margin-bottom: 20upx;
	}
	
	.twoline{
	   overflow : hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
	.pl20{
		padding-left: 20upx;
	}
	.positionT{
		position: relative;
		top: 50upx;
	}
	.paddingB15{
		padding-bottom: 15upx;
	}
	.borderB{
		border-bottom: 1px solid #f4f4f6;
	}
	.borderT{
		border-top: 1px solid #f4f4f6;
	}
	.gl{
		position: absolute;
		right: 30upx;
	}
	.pr30{
		padding-right: 30upx;
	}
	.C333{
		color: #333333;
	}
	.C666{
		color: #666666;
	}
	.Cf00{
		color: #ff0000;
	}
	
	.bold{
		font-weight: bold;
	}
	.C1d1d1d{
		color:#1d1d1d ;
	}
	.fl{
		float: left;
	}
	.fr{
		float: right;
	}
	.tac{
		text-align: center;
	}
	.Ce5258e{
		color: #e5258e;
	}
	.Cccc{
		color: #CCCCCC;
	}
	uni-page-body {
		background-color: #f5f5f5;
		color: rgb(102, 102, 102);
	}		
	.fs30{
		/* font-size: 30upx */
		font-size: 45upx
	}
	.fs26{
		font-size:39upx
		/* font-size: 26upx */
	}
	.fs12{
		font-size: 18upx
		/* font-size: 12upx */
	}
	.fs16{
		font-size: 24upx
		/* font-size: 16upx */
	}
	.fs14{
		font-size: 21upx
		/* font-size: 14upx */
	}
	.fs15{
		font-size: 22.5upx
		/* font-size: 15upx */
	}
	.fs27{
		font-size: 40.5upx
		/* font-size: 27upx */
	}
	.fs18{
		font-size: 27upx
		/* font-size: 18upx */
	}
	.fs28{
		font-size: 42upx
		/* font-size: 28upx */
	}
	.fs10{
		font-size: 15upx
		/* font-size: 10upx */
	}
	.fs30{
		font-size: 45upx
		/* font-size: 28upx */
	}
	.fs24{
		font-size: 36upx
		/* font-size: 24upx */
	}
	.fs20{
		font-size:30upx
		/* font-size: 20upx */
	}
	.fs22{
		font-size:33upx
		/* font-size: 22upx */
	}
	.fs21{
		font-size: 31.5upx
		/* font-size: 21upx */
	}	
	.Cd6b552{
		color: #d6b552;
	}
	.flexsb{
		display: flex;
		justify-content: space-between;
	}
	.plr20{
		padding: 0 20upx;
	}
	.plr10{
		padding: 0 10upx;
	}
	.oneline{
	   overflow : hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.topBox{
		padding-top: 67upx;
		box-sizing: border-box;
		text-align: center;
		width: 700upx;
		height: 342upx;
		margin: 0 25upx;
		background-color: #FFFFFF;
	}
	.liswrap{
		box-sizing: border-box;
		margin: 35upx 25upx 0;
		background-color: #fff;
	}
	.commonLis{
		position: relative;
		border-top: 1upx solid #f4f4f4;
		box-sizing: border-box;
		display: flex;
		padding: 17upx 25upx;
	}
	
</style>

